<extend name="Base/common"/>
<block name="header">
    <include file="Public/_nav"/>
    <link type="text/css" rel="stylesheet" href="__CSS__/course.css"/>
    <script type="text/javascript" src="__JS__/common.js"></script>
</block>

<block name="body">
    <!--登录后显示个人区域-->
     <div class="col-xs-3">  
           
           <include file="Public/tsidebar"  />
     </div>
     <!--/登录后显示个人区域-->


     <div class="col-xs-9 content">
     <div class="row">
           
                   <ul class="nav nav-tabs">
            <li>
              <a href="{:U('index')}">班级课程设置</a>
            </li>
            <li  class="active">
              <a href="{:U('setCurClass')}">设置当前班级</a>
            </li>
            <!-- <li>
              <a href="{:U('Course/selectBjCourse')}">课程编辑</a>
            </li> -->
            </ul>
          <div class="white-box"> 
<!--           <div class="col-xs-10"> -->

             <legend>班级切换</legend>                 
               <form class="form-horizontal form-condensed" role="form" method="post" id="classform" name="classform" action="{:U('dosetCurClass')}">          
                 <div class="form-group">
                    <label class="col-md-3 control-label required">当前班级：</label>
                      <div class="col-md-7">
                         <select name="bj_code" class="form-control"  style="width:210px;" id="bj_code" onChange="this.form.submit()">
                            <option value="{$curclass.bj_code}" > {$curclass.bj_name}</option>
                             <volist name="classlist" id="v">
                                <option value="{$v.bj_code}" >{$v.bj_name}</option>            
                             </volist>                          
                        </select>
                      </div>
                    </div>
                   

                  <legend>课程信息</legend> 
                  
                   <div class="form-group">
                   <label class="col-md-3 control-label required">当前课程：</label>
                       <div class="col-md-7">
                           <select name="lid" id="lid" class="form-control"  style="width:210px;" >
                           <option value="{$curclass.lid}" > {$curclass.title}</option>
                           <volist name="xinxi" id="v">
                           <option value="{$v.id}" >{$v.title}</option>            
                           </volist>
                           </select>
                        </div>                  
                   </div>
                    <div class="form-group">
                      <label class="col-md-3 control-label">上传格式： </label>
                      <div class="col-md-5">
                        <div class="input-group">
                          <input name="date" id="date" value="{$curclass.allow_ext}" class="form-control" type="text" style="width:210px;">
                        </div>
                       </div>
                    </div>

                       <div class="form-group">
                      <label class="col-md-3 control-label">更新日期： </label>
                      <div class="col-md-4">
                        <div class="input-group">
                          <input name="date" id="date" value="{$curclass.update_time|date='Y-m-d',###}" class="form-control" type="text">
                          <span class="input-group-btn"> <button class="btn btn-default" type="button">田</button> </span>
                        </div>
                      </div>
                    </div>

            <div class="form-group">
              <div class="col-md-offset-2 col-md-10">
                 <input class="btn btn-primary" value="保存"  type="submit" >
                  <input name="type" id="type" value="article" type="hidden">
              </div>
            </div>
         </form>
       </div>    

</div>

</block>



